package com.ruoyi.health.report.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.customer.api.domain.CustomerVo;
import com.ruoyi.customer.api.domain.ZkxcUser;
import com.ruoyi.customer.api.domain.ZkxcUserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ChenYF
 * @date 2025-08-29 15:28
 */
@FeignClient(contextId = "RemoteSysConfigService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSysConfigService.class)
public interface IRemoteSysConfigService {
    @GetMapping(value = "/config/configKey/{configKey}")
    R<String> getConfigKey(@PathVariable("configKey") String configKey);

    @PostMapping(value = "/management/zxkc/list")
    TableDataInfo getUserList(@RequestBody CustomerVo vo);

    @PostMapping(value = "/zkxcUser/list")
    TableDataInfo getZkxcUserList(@RequestBody ZkxcUserDTO dto);

    @PostMapping(value = "/zkxcUser/updateZkxcUser")
    AjaxResult updateZkxcUser(@RequestBody ZkxcUser zkxcUser);

    @GetMapping("/zkxcUser/selectZkxcUserById/{id}")
    AjaxResult selectZkxcUserById(@PathVariable(value = "id") Long id);
}
